<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
	<link href="style/authority/basic_layout.css" rel="stylesheet" type="text/css">
	<link href="style/authority/common_style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="scripts/authority/commonAll.js"></script>
	<script type="text/javascript" src="scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
	<script type="text/javascript" src="scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>
	<script type="text/javascript" src="scripts/artDialog/artDialog.js?skin=default"></script>
    
    
    <title>供应商查询</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<div id="container">	
		<div class="ui_content">
			<div class="ui_tb">
		    	<table class="table" width="100%" align="center">
		    		<tr>
		    			<th>供应商名称</th>
		    			<th>地址</th>
		    			<th>法人</th>
		    			<th>联系电话</th>
		    			<th>操作</th>
		    		</tr>
		    		<c:forEach items="${suppliers}" var="temp">
		    			<tr>
		    				<td>${temp.name}</td>
		    				<td>${temp.address}</td>
		    				<td>${temp.corporation}</td>
		    				<td>${temp.tel}</td>
		    				<td><a href="servlet/Newsupplierservlet?type=update&supplier_name=${temp.name}"><button class="ui_input_btn01">修改</button></a>&nbsp;<a href="servlet/Newsupplierservlet?type=delete&supplier_name=${temp.name}"><button class="ui_input_btn01">删除</button></a></td>
		    			</tr>
		    		</c:forEach>
		    	</table>
    		</div>
    	</div>
    </div>
  </body>
</html>
